#pragma once
#ifndef _scoped_array_h_LW_
#define _scoped_array_h_LW_

#include "utils.h"

template <class T>
class scoped_array
{
public:

	scoped_array(T * ptr = NULL)
	{
		_ptr = ptr;
	}
	T* get() {
		return _ptr;
	}
	~scoped_array(void)
	{
		SAFE_DELETE_ARRAY(_ptr);
	}
private: 
	T* _ptr;
};
#endif // _scoped_array_h_LW_

